﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainTemplate.Master" AutoEventWireup="true" CodeBehind="UserDetails.aspx.cs" Inherits="SmartCounters.UserDetails" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ScriptsAndStylesPlaceHolder" runat="server">
	<script type="text/javascript" src="/Scripts/UserDetails.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
User Details
</asp:Content>

<asp:Content ID="UserDetails" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<asp:UpdatePanel ID="UserDetailsUpdatePanel" runat="server">
<ContentTemplate>
	<fieldset id="AddNewUserFieldset" class="AddNewUserFieldSet shadow">
	<legend>User Details</legend>
		<asp:HiddenField ID="hdUserID" Value="null" runat="server" />
		<div><asp:Label ID="lblUsername" runat="server">Username: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbUsername" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblPassword" runat="server">Password: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbPassword" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblPhone" runat="server">Phone: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbPhone" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblMobilePhone" runat="server">MobilePhone: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbMobilePhone" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblEmail" runat="server">Email: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbEmail" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblPermissions" runat="server">Permissions: </asp:Label></div>
		<div class="CheckboxListContainer"><asp:CheckBoxList ID="cbPermissions" AutoPostBack="false" runat="server" CssClass="" />	</div>

		<div><asp:Label ID="Label1" runat="server">Associated Accounts: </asp:Label></div>
		<div class="CheckboxListContainer"><asp:CheckBoxList ID="cbAssociatedAccounts" AutoPostBack="false" runat="server" CssClass="" />	</div>

		<div>
			<asp:Button class="Button" ID="btAdd" Text="Add User" OnClick="AddUser" runat="server"  />
			<asp:Button class="Button" ID="btUpdate" Text="Update User" OnClick="UpdateUser" runat="server"  />
			<asp:Button class="Button" ID="btCancel" Text="Cancel" OnClick="Cancel" runat="server"  />
		</div>
	</fieldset>
</ContentTemplate>
<Triggers>
	<asp:AsyncPostBackTrigger ControlID="btAdd" EventName="Click" />
	<asp:AsyncPostBackTrigger ControlID="btUpdate" EventName="Click" />
	<asp:AsyncPostBackTrigger ControlID="btCancel" EventName="Click" />
</Triggers>
</asp:UpdatePanel>
</asp:Content>
